
export default {
    data () {
        return {
            classTimeType: '',
            classTime: '',
            classTimeList: [],
            selectClassTime: {}, // 已选择课次
            selectClassTimeSelected: '', // 价格
            selectClassTimeSelectedEntity: ''
        };
    },
    mounted () {
        this.init();
    },
    methods: {
        init: function () {
        },
        whenRadioChange: function (event) { // 这个是id
            this.classTime = '';
            // this.selectClassTimeSeted=event//这个是id
            let classTimeList = this.classTimeList;
            for (let i in classTimeList) {
                let id = classTimeList[i].id;
                if (id == event) {
                    this.selectClassTimeSelected = '';
                    this.selectClassTimeSelectedEntity = {
                        price: classTimeList[i].price,
                        name: classTimeList[i].name,
                        id: classTimeList[i].id,
                        time: classTimeList[i].classTime
                    };
                    break;
                }
            }
        },
        whenInput: function (value) {
            this.classTimeType = '';
            this.price = '';
            this.selectClassTimeSelected = value;
            this.selectClassTimeSelectedEntity='';
        }
    }
};
